# -*- coding: utf-8 -*-
"""
summary:
    文章模板
author:
    Jason Lee <huacnlee@gmail.com>
"""
from django.template import Library,defaultfilters
from utils.helper import view
from settings import *

register = Library()

def format_theme_link(theme_name):
    """
    summary:
        根据theme名称返回css文件地址
    """
    return "blog/%s/layer.css" % theme_name


register.filter("format_theme_link", format_theme_link)